<template>
  <!-- 功能脚本 -->
  <ListenerEditor :record-data="config" :modal-ele="modalEle" />
</template>
<script>
  import { defineComponent } from 'vue';
  import ListenerEditor from '@/components/listener-editor/index.vue';
  export default defineComponent({
    name: 'FuncListeners',
    components: { ListenerEditor },
    props: { funcBean: Object, modalEle: Object },
    setup(props) {
      const config = {
        id: props.funcBean.JE_CORE_FUNCINFO_ID,
        code: props.funcBean.FUNCINFO_FUNCCODE,
        text: props.funcBean.FUNCINFO_FUNCNAME,
        eventType: 'All',
      };
      return { config };
    },
  });
</script>
